package com.maywide.jdp.system.bean;

import java.util.List;
import java.util.Map;

import com.maywide.jdp.core.bean.MovedBean;
import com.maywide.jdp.core.vo.Context;
import com.maywide.jdp.system.entities.Menu;
import com.maywide.jdp.system.vo.MenuCheckedTree;

/**
 * 菜单管理Bean接口
 * 
 * @author luoyang
 * @version 1.0
 * @since JDK1.6
 */
public interface MenuBean extends MovedBean {

	/**
	 * 获得某个登录用户的启动菜单
	 * @param context 登录上下文
	 * @return 菜单VO列表
	 */
	public List<Menu> getStartMenus(Context context) throws Exception;

	/**
	 * 获得角色对应的菜单
	 * @param roleID 角色ID
	 * @return
	 */
	public List<Menu> findMenus(String roleID) throws Exception;
	
	public List<MenuCheckedTree> treeGrid(Map<String, Object> parameters) throws Exception;
}
